﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ConversationDataSet" targetNamespace="http://tempuri.org/ConversationDataSet.xsd" xmlns:mstns="http://tempuri.org/ConversationDataSet.xsd" xmlns="http://tempuri.org/ConversationDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="TafitiConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="TafitiConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.WLQuickApps.Tafiti.Data.Properties.Settings.GlobalReference.Default.TafitiConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ConversationsTableAdapter" GeneratorDataComponentClassName="ConversationsTableAdapter" Name="Conversations" UserDataComponentName="ConversationsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="TafitiConnectionString (Settings)" DbObjectName="Tafiti.dbo.Conversations" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Conversations] WHERE (([CommentID] = @Original_CommentID) AND ([ShelfStackID] = @Original_ShelfStackID) AND ([UserID] = @Original_UserID) AND ([Timestamp] = @Original_Timestamp))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CommentID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CommentID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ShelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_UserID" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Timestamp" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Timestamp" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Conversations] ([ShelfStackID], [UserID], [Timestamp], [Text]) VALUES (@ShelfStackID, @UserID, @Timestamp, @Text);
SELECT CommentID, ShelfStackID, UserID, Timestamp, Text FROM Conversations WHERE (CommentID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ShelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@UserID" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Timestamp" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Timestamp" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Text" Precision="0" ProviderType="NText" Scale="0" Size="0" SourceColumn="Text" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CommentID, ShelfStackID, UserID, Timestamp, Text FROM dbo.Conversations</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Conversations] SET [ShelfStackID] = @ShelfStackID, [UserID] = @UserID, [Timestamp] = @Timestamp, [Text] = @Text WHERE (([CommentID] = @Original_CommentID) AND ([ShelfStackID] = @Original_ShelfStackID) AND ([UserID] = @Original_UserID) AND ([Timestamp] = @Original_Timestamp));
SELECT CommentID, ShelfStackID, UserID, Timestamp, Text FROM Conversations WHERE (CommentID = @CommentID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ShelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@UserID" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Timestamp" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Timestamp" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Text" Precision="0" ProviderType="NText" Scale="0" Size="0" SourceColumn="Text" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CommentID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CommentID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ShelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_UserID" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Timestamp" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Timestamp" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="CommentID" ColumnName="CommentID" DataSourceName="Tafiti.dbo.Conversations" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@CommentID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="CommentID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="CommentID" DataSetColumn="CommentID" />
              <Mapping SourceColumn="UserID" DataSetColumn="UserID" />
              <Mapping SourceColumn="Timestamp" DataSetColumn="Timestamp" />
              <Mapping SourceColumn="Text" DataSetColumn="Text" />
              <Mapping SourceColumn="ShelfStackID" DataSetColumn="ShelfStackID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="TafitiConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy" GeneratorSourceName="CreateComment" Modifier="Public" Name="CreateComment" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="CreateComment">
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>INSERT INTO [dbo].[Conversations] ([ShelfStackID], [UserID], [Timestamp], [Text]) VALUES (@shelfStackID, @userID, @timestamp, @text);
SELECT SCOPE_IDENTITY()</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="shelfStackID" ColumnName="ShelfStackID" DataSourceName="Tafiti.dbo.Conversations" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@shelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="userID" ColumnName="UserID" DataSourceName="Tafiti.dbo.Conversations" DataTypeServer="char(32)" DbType="AnsiString" Direction="Input" ParameterName="@userID" Precision="0" ProviderType="Char" Scale="0" Size="32" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="timestamp" ColumnName="Timestamp" DataSourceName="Tafiti.dbo.Conversations" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@timestamp" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="Timestamp" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="text" ColumnName="Text" DataSourceName="Tafiti.dbo.Conversations" DataTypeServer="ntext" DbType="String" Direction="Input" ParameterName="@text" Precision="0" ProviderType="NText" Scale="0" Size="1073741823" SourceColumn="Text" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
              </DbSource>
              <DbSource ConnectionRef="TafitiConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteComment" Modifier="Public" Name="DeleteComment" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="DeleteComment">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>DELETE FROM [dbo].[Conversations] 
WHERE CommentID = @commentID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="commentID" ColumnName="CommentID" DataSourceName="Tafiti.dbo.Conversations" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@commentID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="CommentID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
              </DbSource>
              <DbSource ConnectionRef="TafitiConnectionString (Settings)" DbObjectName="Tafiti.dbo.Conversations" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetCommentByID" GetMethodModifier="Public" GetMethodName="GetCommentByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetCommentByID" UserSourceName="GetCommentByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CommentID, ShelfStackID, Text, Timestamp, UserID FROM Conversations WHERE (CommentID = @commentID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="commentID" ColumnName="CommentID" DataSourceName="Tafiti.dbo.Conversations" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@commentID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="CommentID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="TafitiConnectionString (Settings)" DbObjectName="Tafiti.dbo.Conversations" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetConversationByShelfStackID" GetMethodModifier="Public" GetMethodName="GetConversationByShelfStackID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetConversationByShelfStackID" UserSourceName="GetConversationByShelfStackID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CommentID, ShelfStackID, Text, Timestamp, UserID FROM Conversations WHERE (ShelfStackID = @shelfStackID) ORDER BY Timestamp</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="shelfStackID" ColumnName="ShelfStackID" DataSourceName="Tafiti.dbo.Conversations" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@shelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="ConversationDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="ConversationDataSet" msprop:Generator_DataSetName="ConversationDataSet" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Conversations" msprop:Generator_UserTableName="Conversations" msprop:Generator_RowDeletedName="ConversationsRowDeleted" msprop:Generator_RowChangedName="ConversationsRowChanged" msprop:Generator_RowClassName="ConversationsRow" msprop:Generator_RowChangingName="ConversationsRowChanging" msprop:Generator_RowEvArgName="ConversationsRowChangeEvent" msprop:Generator_RowEvHandlerName="ConversationsRowChangeEventHandler" msprop:Generator_TableClassName="ConversationsDataTable" msprop:Generator_TableVarName="tableConversations" msprop:Generator_RowDeletingName="ConversationsRowDeleting" msprop:Generator_TablePropName="Conversations">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="CommentID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="CommentID" msprop:Generator_ColumnVarNameInTable="columnCommentID" msprop:Generator_ColumnPropNameInRow="CommentID" msprop:Generator_ColumnPropNameInTable="CommentIDColumn" type="xs:int" />
              <xs:element name="UserID" msprop:Generator_UserColumnName="UserID" msprop:Generator_ColumnVarNameInTable="columnUserID" msprop:Generator_ColumnPropNameInRow="UserID" msprop:Generator_ColumnPropNameInTable="UserIDColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="32" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Timestamp" msprop:Generator_UserColumnName="Timestamp" msprop:Generator_ColumnVarNameInTable="columnTimestamp" msprop:Generator_ColumnPropNameInRow="Timestamp" msprop:Generator_ColumnPropNameInTable="TimestampColumn" type="xs:dateTime" />
              <xs:element name="Text" msprop:Generator_UserColumnName="Text" msprop:Generator_ColumnVarNameInTable="columnText" msprop:Generator_ColumnPropNameInRow="Text" msprop:Generator_ColumnPropNameInTable="TextColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1073741823" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ShelfStackID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_UserColumnName="ShelfStackID" msprop:Generator_ColumnPropNameInRow="ShelfStackID" msprop:Generator_ColumnVarNameInTable="columnShelfStackID" msprop:Generator_ColumnPropNameInTable="ShelfStackIDColumn" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Conversations" />
      <xs:field xpath="mstns:CommentID" />
    </xs:unique>
  </xs:element>
</xs:schema>